# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=ppscan
pkgver=0.3
pkgrel=2
pkgdesc='Yet another port scanner with HTTP and FTP tunneling support.'
groups=('blackarch' 'blackarch-scanner')
arch=('x86_64' 'aarch64')
url='https://packetstormsecurity.com/files/82897/PPScan-Portscanner-0.3.html'
license=('custom:unknown')
source=("https://dl.packetstormsecurity.net/UNIX/scanners/$pkgname-$pkgver.tar.gz")
sha512sums=('473087933b585affb8f50da56d86bf76ffffe169a47607aaa2093768d404204105fa7011509aac3bde4c430923958cf47813c2dbcf7923747b7a1b098f734872')

build() {
  cd "$pkgname-$pkgver"

  gcc -o $pkgname "$pkgname.c" -lpthread
}

package() {
  cd "$pkgname-$pkgver"

  install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README
}

